<template>
  <div class="showcase-container">
    <h1 class="showcase-title">
      Trusted by over 500,000 companies, 35 million developers, and 98% of the Fortune 500
    </h1>

    <div class="logo-grid">
      <div v-for="(company, index) in companies"
           :key="index"
           class="logo-item">
        <img
            :src="company.logo"
            :alt="company.name"
            class="company-logo"
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CompanyShowcase',
  data() {
    return {
      companies: [
        { name: 'Microsoft', logo: 'icon/Pasted image 20241224102859.png' },
        { name: 'Stripe', logo: 'icon/Pasted image 20241224102907.png' },
        { name: 'Meta', logo: 'icon/Pasted image 20241224102915.png' },
        { name: 'Notion', logo: 'icon/Pasted image 20241224102922.png' },
        { name: 'Salesforce', logo: 'icon/Pasted image 20241224102929.png' },
        { name: 'Mercedes', logo: 'icon/Pasted image 20241224102936.png' },
        { name: 'Discord', logo: 'icon/Pasted image 20241224102946.png' },
        { name: 'PayPal', logo: 'icon/Pasted image 20241224102954.png' },
        { name: 'AWS', logo: 'icon/Pasted image 20241224103002.png' },
        { name: 'Twitter', logo: 'icon/Pasted image 20241224103010.png' },
        { name: 'DevNet', logo: 'icon/Pasted image 20241224103017.png' },
        { name: 'Intuit', logo: 'icon/Pasted image 20241224103029.png' },
      ]
    }
  }
}
</script>

<style scoped>
.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.showcase-title {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 60px;
  max-width: 900px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform 0.3s ease;
}

.logo-item:hover {
  transform: translateY(-5px);
}

.company-logo {
  max-width: 120px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-item:hover .company-logo {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .showcase-title {
    font-size: 32px;
  }

  .logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
  }

  .company-logo {
    max-width: 100px;
  }
}
</style>